﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using Paperless_Library;

namespace Paperless_WCF.Interfaces
{
    /// <summary>
    /// 
    /// </summary>
    [ServiceContract]
    public interface IServiceDocumentContract
    {
        #region Metodos Documentos
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="userSender"></param>
        /// <param name="userReciever"></param>
        /// <param name="department"></param>
        /// <param name="documentType"></param>
        /// <param name="issueDate"></param>
        /// <param name="receptionDate"></param>
        /// <returns></returns>
        [OperationContract]
        Document[] GetDocuments(byte[] userId, string userSender, string userReciever, string department, string documentType, DateTime issueDate, DateTime receptionDate);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="documentId"></param>
        /// <returns></returns>
        [OperationContract]
        History[] GetDocumentHistory(byte[] userId, int documentId);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        [OperationContract]
        Document[] GetDocumentsToMigrate(byte[] userId);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="idUsuario"></param>
        /// <param name="nombreUsuario"></param>
        /// <returns></returns>
        [OperationContract]
        Document[] GetUserDocuments(byte[] userId, string userName);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="docId"></param>
        /// <returns></returns>
        [OperationContract]
        Document GetDocument(byte[] userId, int docId);
        #endregion
    }
}
